home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Die Speccy' 97
/
Die Speccy' 97.iso
/
amiga_system
/
the_aminet
/
comm
/
tcp
/
mufs_telnetd.lha
/
telnetd2_0.lha
/
telnetd-2.0
/
source
/
NoReq.c
next >
Wrap
C/C++ Source or Header
|
1995-02-11
|
393b
|
20 lines
/*
* NoReq disables requesters in the current shell.
* This code is public domain.
*/
#include <dos/dosextens.h>
#include <proto/exec.h>
int startup(void)
{
struct Process *Proc;
struct Library *SysBase;
SysBase = *((struct Library **) 0x00000004);
Proc = (struct Process *) FindTask(NULL);
Proc->pr_WindowPtr = (APTR) -1L;
return (0);
}